package cn.ac.jaas.isc.vegetable.admin.mapper;

import cn.ac.jaas.isc.vegetable.admin.api.entity.SysRole;
import cn.ac.jaas.isc.vegetable.common.data.datascope.VegetableBaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author 张高昌
 * @date 2022/4/28 13:20
 * @description: 功能描述
 */
@Mapper
public interface SysRoleMapper extends VegetableBaseMapper<SysRole> {

    /**
     * 通过用户ID，查询角色信息
     *
     * @param userId
     * @return
     */
    List<SysRole> listRolesByUserId(Integer userId);
}
